x86/fpu: clean up FPU context restore function
authorWei Huang <wei.huang2@amd.com>
Mon, 9 May 2011 10:38:30 +0000 (11:38 +0100)
committerWei Huang <wei.huang2@amd.com>
Mon, 9 May 2011 10:38:30 +0000 (11:38 +0100)
commit3eb0faa4f80653d56e0e74d68872f6d73de23937
tree7f3f898fa69324d8e1f4e1ef91de82725f0c17dc
parent09014a12a9a2e820bc2ac2f82ff9018a69208c8c
x86/fpu: clean up FPU context restore function

This patch cleans up context restore function. It renames the function
name to vcpu_restore_fpu(). It also extracts FPU restore code (frstor,
fxrstor, xrstor) out into seperate functions. vcpu_restor_fpu() will
dispatch to these functions depending on CPU's capability.

Signed-off-by: Wei Huang <wei.huang2@amd.com>
xen/arch/x86/hvm/svm/svm.c
xen/arch/x86/hvm/vmx/vmx.c
xen/arch/x86/i387.c
xen/arch/x86/traps.c
xen/include/asm-x86/i387.h